#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void main()
{
	int a = 0;
	int b = 1;
	int sum = 0;
	for (a = 1; a < 11; a++)
	{
		b = b * a;
		sum = sum + b;

	}
	printf("%d", sum);
}